package com.zznzzn.myweb.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.lang.Nullable;

import javax.validation.constraints.NotNull;
import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class User {

    private String uuid; //32位

    private String username; //30位

    private String nickname;//30位

    //要加的盐
    private String salt; //32位

    //加盐后的字段
    private String password; //64位

    private Date createtime;

    //optional fields
    private String token;

    private int gender;// 未知 0 男 1 女 2

    private String email;// 50位

    private String description; //150

    private int rank;

    private int status; //正常0 封号1 销户2

    private Date exptime;

    private String avatarpath;

    private String avatarcolor;
}
